<include file="Public/siteTopbar" />
<link rel="stylesheet" href="__STATIC__/css/book.css">
<include file="Public/header" />


<div class="container">
<div class="container-message-title">








    <!--<div class="message_title"> HONG KONG SUNWE GROUP CO., LTD.</div>-->
    <div class="message_title">{$about.about_title} </div>

    {$about.about_content|htmlspecialchars_decode}
<!--


    Opening hours (Beijing time): Monday to Saturday: 8:00am – 18:00pm,<br >
    Sunday: 10am – 3:00pm.<br >
    Add: No.58 Zhongshan 6 Road, East District, Zhongshan City, Guang Dong, China<br >
    Tel: +86-760-87905952<br >
    <br >
    Contact: Even Lau<br >
    <br >
    E-mail: <a href="mailto:cs@secret-doll.com"  >cs@secret-doll.com</a><br >
    If you have any question, or want to customize the doll which designed by yourself, <br >
    you can always contact us either by phone or by email.<br >-->










    <!--Opening hours (Beijing time): Monday to Saturday: 8:00am – 18:00pm,<br >
    Sunday: 10am – 3:00pm.<br >
    Add: No.58 Zhongshan 6 Road, East District, Zhongshan City, Guang Dong, China<br >
    Tel: +86-760-87905952, Fax: +86-760-86938508<br >
    Contact: Even Lau<br >
    <br >
    Cell: +86-135 2714 8696<br >
    <br >
    Email: cs@secret-doll.com<br >
    If you have any question, or want to customize the doll which designed by yourself ,<br >
    you can always contact us either by phone or by email.<br > -->
</div>

</div>

<!--<div class="container" style="position:relative; margin-bottom:30px;">
    <h3 class="wrapTitle" style="margin:0;">- Ask a Message -</h3>
    <a name="question-form"></a>
    <form action="{:U('Home/Messages/add_message')}" method="post" id="form_consult" name="form_consult" onSubmit="return check_form_consult(this);">
        <div class="postFormBox" style="background:#f5f5f5;">
            <div style="padding-bottom:10px;"><b>Problem</b><em>*</em></div>
            <div><textarea name="content" id="content" title="content" class="required-entry input-text" cols="5" style="border:1px solid #fff;" rows="6"></textarea></div>
        </div>
        <div class="postFormBoxli clearfix">


            <div class="col-sm-6">
                <b>Code<em>*</em></b>
                <div class="input-box">
                    <div class="input-box">
                        <img src="/index.php?m=Home&c=Index&a=verify&type=consult&fontSize=20&length=4" onclick="verify(this)" id="captcha_image">
                    </div>

                    <div class="left">
                        <div class="left"><label class="required">Enter the text above<em>*</em></label></div>
                        <div class="left">
                            <input type="text" name="verify_code" class="required-entry input-text captcha-input" id="verify_code" value="">
                        </div>
                    </div>


                </div>
            </div>

            <div class="col-sm-12" style="margin-bottom:10px;">

                <button type="submit" title="Submit" class="button form-button">POST MESSAGE</button>
            </div>
        </div>
    </form>
</div>-->

<script>
    function get_set_xh(type,id){
        $.ajax({
            type: "POST",
            url: "{:U('Home/Messages/set_xh')}",//+tab,
            data: {id: id,type:type}, //
            dataType: 'json',
            success: function () {
                if(type=="yes_role")
                {
                    var classIdname = "review_support_";
                }
                else
                {
                    var classIdname = "review_against_";
                }
                $("#"+classIdname+id).html(parseInt($("#"+classIdname+id).html())+1);
            }
        });
    }

    // 商品咨询表单验证
    function check_form_consult(f){
        if($.trim($('textarea[name="content"]').val()).length == 0)
        {

            layer.msg('Question is a required field.', {
                icon: 1,   // 成功图标
                time: 2000 //2秒关闭（如果不配置，默认是3秒）
            });
            return false;
        }

        return true;
    }


    function verify(){
        $('#captcha_image').attr('src','/index.php?m=Home&c=Index&a=verify&type=consult&fontSize=20&length=4&r='+Math.random());
    }
</script></div>


<div class="container bbs_box">
    <foreach name="lists" item="v" key="k" >
        <div class="row bbs_list">
            <div class="col-lg-3 col-xs-12 bbs_list_img">{$v.user_id|get_user_name}<br  />
                <img src="__STATIC__/images/pic.png"  />
            </div>
            <div class="col-lg-9 col-xs-12 bbs_list_content">
                <div class="bbs_postdate">
                    <img src="__STATIC__/images/time.png"  />Postdate：{$v.add_time|date='Y-m-d H:i:s',###}
                </div>

                <div class="bbs_content_box">{$v.content}

                    <div class="clear"></div>
                </div>
                <foreach name="v.re_list" item="vv" key="kk" >
                    <div class="quote"><blockquote><font size="2">
                        <font color="#999999">admin Postdate: {$vv.add_time|date='Y-m-d H:i:s',###}</font></font><br>
                        {$vv.content}</blockquote>
                    </div>
                </foreach>


                <div class="pob cl">

                    <a class="replyadd" href="javascript:get_set_xh('yes_role',{$v[id]});"><img src="__STATIC__/images/rec_add.gif"  />Good <span id="review_support_{$v.id}">{$v.yes_role}</span></a>
                    <a class="replysubtract" href="javascript:get_set_xh('no_role',{$v[id]});" ><img src="__STATIC__/images/rec_subtract.gif"  />Bad <span id="review_against_{$v.id}">{$v.no_role}</span></a>
                    </em>
                </div>

            </div>
        </div>
    </foreach>


    <div class="dataTables_paginate paging_simple_numbers">{$page}</div>
</div>







<include file="Public/footer01" />
</body>
</html>